<?php

namespace Admin\Controller;

class KingsvnController extends \Think\Controller {

    function __construct() {
        parent::__construct();
        $this->assign('admin_menu', getAdminMenu());
    }

    public function _initialize() {
        if (!cookie('admin')) {
            $this->redirect('admin/common/login');
        } else {
            $admin = (array) cookie('admin');
            $this->assign('admin', $admin);
        }
    }

}
